package com.lst.api.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author: Frank
 * @date: 2019/09/24 13:51
 * @version: V1.0
 */
@Data
@NoArgsConstructor
public class AddressVo implements Serializable {
    private static final long serialVersionUID = 1L;

    private String parentCode;
    private String code;
    private String name;
    private Double longitude;
    private Double latitude;
    private List<AddressVo> sub;

    public AddressVo(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public AddressVo(String parentCode, String code, String name) {
        this(code, name);
        this.parentCode = parentCode;
        this.code = code;
        this.name = name;
    }

    public AddressVo(String code, String name, List<AddressVo> sub) {
        this(code, name);
        this.sub = sub;
    }

    public AddressVo(String parentCode, String code, String name, List<AddressVo> sub) {
        this(code, name, sub);
        this.parentCode = parentCode;
    }
}
